/**
 * Created by renzhiqiang on 17/8/26.
 */
import { put, call, fork} from 'redux-saga/effects'

import { takeEvery } from 'redux-saga'
 const delay = ms => new Promise(resolve => setTimeout(function () {
     resolve();
     return {name:"11"};
 }, ms));
export function* incrementAsync() {
   var data = yield call(delay, 8000);



    yield put({type: 'INCREMENT'})
}
export default function* rootSaga() {
    yield takeEvery('INCREMENT_ASYNC', incrementAsync);
    yield takeEvery('*', function* logger() {
        console.log('received action:', "1111");
        console.log('state become:');
    });
}
